package com.sm.service;

import com.sm.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sm.dao.UserMapper;

@Service
public class PersonalHomeService {
	
	@Autowired
	private UserMapper userMapper;
	
	/**
	 * 	通过用户id查询用户的信息
	 * @param userId	用户id
	 * @return	用户信息
	 */
	public User selectByPrimaryKey(Integer userId) {
		return userMapper.selectByPrimaryKey(userId);
	}

}
